package com.bizhibihui.ordermeal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bizhibihui.ordermeal.entity.BizOrder;
import com.bizhibihui.ordermeal.vo.OrderVo;

import java.util.List;

/**
 */
public interface BizOrderService extends IService<BizOrder> {

    List<BizOrder> findByCondition(IPage<BizOrder> page,BizOrder bizOrder);

    int delete(Integer id);

    boolean create(OrderVo orderVo);


    int complete(Integer id);

    int completeBatch(Integer[] ids);

    List<BizOrder> getMyOrder(IPage<BizOrder> page,BizOrder bizOrder);
}
